
import com.fiap.weatherstation.CurrentConditionsDisplay;
import com.fiap.weatherstation.ForecastDisplay;
import com.fiap.weatherstation.StatisticsDisplay;
import com.fiap.weatherstation.WeatherData;



/**
 * Hello world!
 *
 */
public class Main 
{
    public static void main( String[] args )
    {
	WeatherData weatherData = new WeatherData();
	
	CurrentConditionsDisplay currentDisplay = new CurrentConditionsDisplay(weatherData);
	StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
	ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
	
	weatherData.setMeasurements(30,22,20.5f);
	weatherData.setMeasurements(31,21,10f);
	
	weatherData.removeObserver(forecastDisplay);
	
	weatherData.setMeasurements(32,20,15.3f);
    
    }
}
